<%@ Page Title="Member_WithdrawAccount List" Language="C#" AutoEventWireup="true" CodeBehind="Member_WithdrawAccountList.aspx.cs" Inherits="Youz.CreditRepay.Manage.Member_WithdrawAccountList" %>

<script>
    //loadCSS("assets/plugins/gritter/css/jquery.gritter.css");

    var requireJS = [
        //"assets/plugins/gritter/js/jquery.gritter.min.js"
    ];

    loadJS(requireJS);
</script>
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading" data-original-title>
                <h2><i class="fa fa-align-justify"></i><span style="font-size: 16px; padding-right: 15px;"><%: R(LanguageModule.Member_WithdrawAccount, "Member_WithdrawAccount", "Member_WithdrawAccount") %></span></h2>
                <div class="panel-actions"></div>
            </div>
            <div class="panel-body">
                <div class="alert alert-danger" style="display: none;">
                    <button type="button" class="close" data-dismiss="alert">×</button><strong><i class="fa fa-warning"></i></strong><span class="content"></span>
                </div>
                <form class="form-horizontal">
                    <div class="row">
                        <div class="col-md-4">
                            <div class="form-group">
                                <label class="col-md-3 control-label"><%: R(LanguageModule.M_Common, "MemberAccount", "会员帐号") %></label>
                                <div class="col-md-9">
                                    <input type="email" id="MemberAccount" maxlength="100" name="MemberAccount" class="form-control" placeholder="<%: R(LanguageModule.M_Common, "MemberAccount", "会员帐号") %>">
                                </div>
                            </div>
                        </div>
                        <div class="col-md-4">
                            <button type="button" id="btnQuery" name="btnQuery" class="btn btn-default btn-ar btn-primary">
                                <i class="fa fa-search "></i>
                                <%: R(LanguageModule.M_Common, "Query") %>
                            </button>
                        </div>
                </form>
                <table id="table" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%"></table>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    var dt;

    $(function () {

        dt = $('#table').DataTable({
            "ajax": {
                "url": 'Member/Handlers/Member_WithdrawAccountHandler.ashx?type=list',
                "type": "POST",
                "dataSrc": "data",
                "data": function (d) {
                    d.MemberAccount = $('#MemberAccount').val();
                }
            },
            "columns": [
                    { "data": 'RowIndex', "title": "#" },
                    { "data": 'AccountID', "title": "<%: R(LanguageModule.Member_WithdrawAccount, "AccountID", "银行卡") %>", visible: false },
                    { "data": 'MemberAccount', "title": "<%: R(LanguageModule.M_Common, "MemberAccount", "会员帐号") %>" },
                    { "data": 'BankName', "title": "<%: R(LanguageModule.Member_WithdrawAccount, "BankName", "银行名称") %>" },
                    { "data": 'BankAccountNo', "title": "<%: R(LanguageModule.Member_WithdrawAccount, "BankAccountNo", "银行账户号") %>" },
                    { "data": 'BankAccountName', "title": "<%: R(LanguageModule.Member_WithdrawAccount, "BankAccountName", "银行賬戶名") %>" },
                    { "data": 'BankPosition', "title": "<%: R(LanguageModule.Member_WithdrawAccount, "BankPosition", "银行位置") %>" },
                    { "data": 'BankCountry', "title": "<%: R(LanguageModule.Member_WithdrawAccount, "BankCountry", "银行所在国家") %>" },
                    { "data": 'IsDefault', "title": "<%: R(LanguageModule.Member_WithdrawAccount, "IsDefault", "默认") %>", render: fYesNo },
                    { "data": 'Memo', "title": "<%: R(LanguageModule.Member_WithdrawAccount, "Memo", "备注") %>" },
                    { "data": 'CreateTime', "title": "<%: R(LanguageModule.Member_WithdrawAccount, "CreateTime", "创建时间") %>" },
            ]
        });
        $('#btnQuery').click(function () {
            dt.ajax.reload();
        });
    });
</script>
